<?php

require_once "../vendor/autoload.php";
use Doctrine\ORM\Tools\Setup;
use Doctrine\ORM\EntityManager;
class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
{

 public function initDoctrine(){
   
   $paths = array("/models");
   $isDevMode = false;

    // the connection configuration
    $dbParams = array(
    'driver'   => 'pdo_mysql',
    'user'     => 'root',
    'password' => '',
    'dbname'   => 'carros',
    );

$config = Setup::createAnnotationMetadataConfiguration($paths, $isDevMode);
$entityManager = EntityManager::create($dbParams, $config);

}
}
